#include "logwindow.h"
#include "ui_logwindow.h"

LogWindow::LogWindow(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::LogWindow)
{
    ui->setupUi(this);
}

LogWindow::~LogWindow()
{
    delete ui;
}

void LogWindow::on_btnClose_clicked()
{
    this->close();
}

void LogWindow::on_btnClear_clicked()
{
    ui->logEdit->clear();
}

void  LogWindow::addLogEntry(const QString &text)
{
    ui->logEdit->append(text);
}
